package android.backgroundmode;

import android.backgroundmode.IBackgroundModeServiceCallback;

/**
* Communication channel from client to the AMT service.
* @hide
*/
interface IBackgroundModeService
{
    const String SERVICE_NAME = "backgroundmode_service";

    const int MODE_FOREGROUND = 1;
    const int MODE_BACKGROUND = 2;

    int getBackgroundMode();
    void registerBackgroundModeListener(in IBackgroundModeServiceCallback callback);
    void unregisterBackgroundModeListener(in IBackgroundModeServiceCallback callback);
}
